﻿Imports BLL
Public Class EletronicosCON
    Inherits System.Web.UI.Page
    Dim objbll As New EletronicosBLL
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If (Not IsPostBack()) Then
            gvDados.DataSource = objbll.buscar("", 4)
            gvDados.DataBind()
        End If
    End Sub
    Protected Sub gvDados_PageIndexChanging(sender As Object, e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles gvDados.PageIndexChanging
        gvDados.DataSource = objbll.buscar("", 4)
        gvDados.DataBind()
        gvDados.PageIndex = e.NewPageIndex
        gvDados.DataBind()

    End Sub
End Class